.class public Lcom/TwinBlade/PicturePassword/ak;
.super Landroid/view/View;
.source "SourceFile"

# interfaces
.implements Landroid/view/View$OnTouchListener;


# instance fields
.field private A:Ljava/util/List;

.field private B:Ljava/util/List;

.field private C:Ljava/util/List;

.field private D:Ljava/util/List;

.field private E:Ljava/util/List;

.field private F:Ljava/util/List;

.field private G:Ljava/util/List;

.field private H:Ljava/util/List;

.field private I:Ljava/util/List;

.field public a:I

.field private b:F

.field private c:F

.field private d:F

.field private e:F

.field private f:Ljava/util/List;

.field private g:Ljava/lang/String;

.field private h:Landroid/content/Context;

.field private i:Landroid/content/SharedPreferences;

.field private j:Ljava/util/List;

.field private k:Landroid/graphics/Paint;

.field private l:Landroid/graphics/Paint;

.field private m:Landroid/graphics/Paint;

.field private n:F

.field private o:F

.field private p:I

.field private q:I

.field private r:I

.field private s:I

.field private t:I

.field private u:Z

.field private v:Z

.field private w:Ljava/util/List;

.field private x:Ljava/util/List;

.field private y:Ljava/util/List;

.field private z:Ljava/util/List;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 9
    .parameter

    .prologue
    const/high16 v1, -0x4080

    const/high16 v6, 0x40e0

    const/4 v8, 0x0

    const/4 v7, 0x1

    .line 69
    invoke-direct {p0, p1}, Landroid/view/View;-><init>(Landroid/content/Context;)V

    .line 24
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->f:Ljava/util/List;

    .line 25
    iput v8, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    .line 26
    const-string v0, ""

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->g:Ljava/lang/String;

    .line 31
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->j:Ljava/util/List;

    .line 37
    iput v1, p0, Lcom/TwinBlade/PicturePassword/ak;->n:F

    .line 38
    iput v1, p0, Lcom/TwinBlade/PicturePassword/ak;->o:F

    .line 41
    iput v8, p0, Lcom/TwinBlade/PicturePassword/ak;->q:I

    .line 50
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->w:Ljava/util/List;

    .line 51
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->x:Ljava/util/List;

    .line 52
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->y:Ljava/util/List;

    .line 53
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->z:Ljava/util/List;

    .line 54
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->A:Ljava/util/List;

    .line 56
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->B:Ljava/util/List;

    .line 57
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->C:Ljava/util/List;

    .line 58
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->D:Ljava/util/List;

    .line 59
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->E:Ljava/util/List;

    .line 60
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->F:Ljava/util/List;

    .line 62
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    .line 63
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->H:Ljava/util/List;

    .line 65
    const/4 v0, 0x5

    new-array v0, v0, [Ljava/lang/String;

    const-string v1, "FirstGestureData"

    aput-object v1, v0, v8

    const-string v1, "SecondGestureData"

    aput-object v1, v0, v7

    const/4 v1, 0x2

    .line 66
    const-string v2, "ThirdGestureData"

    aput-object v2, v0, v1

    const/4 v1, 0x3

    const-string v2, "FourthGestureData"

    aput-object v2, v0, v1

    const/4 v1, 0x4

    const-string v2, "FifthGestureData"

    aput-object v2, v0, v1

    invoke-static {v0}, Ljava/util/Arrays;->asList([Ljava/lang/Object;)Ljava/util/List;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->I:Ljava/util/List;

    .line 71
    invoke-virtual {p0, v7}, Lcom/TwinBlade/PicturePassword/ak;->setFocusable(Z)V

    .line 72
    invoke-virtual {p0, v7}, Lcom/TwinBlade/PicturePassword/ak;->setFocusableInTouchMode(Z)V

    .line 74
    invoke-virtual {p0, p0}, Lcom/TwinBlade/PicturePassword/ak;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 76
    iput-object p1, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    .line 77
    sget-object v0, Lcom/TwinBlade/PicturePassword/Utilities;->c:Landroid/content/Context;

    invoke-static {v0}, Landroid/preference/PreferenceManager;->getDefaultSharedPreferences(Landroid/content/Context;)Landroid/content/SharedPreferences;

    move-result-object v0

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->i:Landroid/content/SharedPreferences;

    .line 79
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->i:Landroid/content/SharedPreferences;

    const-string v1, "ThemeColor"

    const/16 v2, 0xff

    const/16 v3, 0x39

    const/16 v4, 0x92

    const/16 v5, 0xb5

    invoke-static {v2, v3, v4, v5}, Landroid/graphics/Color;->argb(IIII)I

    move-result v2

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getInt(Ljava/lang/String;I)I

    move-result v0

    .line 81
    new-instance v1, Landroid/graphics/Paint;

    invoke-direct {v1}, Landroid/graphics/Paint;-><init>()V

    iput-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->m:Landroid/graphics/Paint;

    .line 82
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->m:Landroid/graphics/Paint;

    const/4 v2, -0x1

    invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setColor(I)V

    .line 83
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->m:Landroid/graphics/Paint;

    invoke-virtual {v1, v7}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 84
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->m:Landroid/graphics/Paint;

    invoke-virtual {v1, v6}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 86
    new-instance v1, Landroid/graphics/Paint;

    invoke-direct {v1}, Landroid/graphics/Paint;-><init>()V

    iput-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->k:Landroid/graphics/Paint;

    .line 87
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->k:Landroid/graphics/Paint;

    invoke-static {v0}, Landroid/graphics/Color;->alpha(I)I

    move-result v2

    invoke-static {v0}, Landroid/graphics/Color;->red(I)I

    move-result v3

    invoke-static {v0}, Landroid/graphics/Color;->green(I)I

    move-result v4

    invoke-static {v0}, Landroid/graphics/Color;->blue(I)I

    move-result v5

    invoke-static {v2, v3, v4, v5}, Landroid/graphics/Color;->argb(IIII)I

    move-result v2

    invoke-virtual {v1, v2}, Landroid/graphics/Paint;->setColor(I)V

    .line 88
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->k:Landroid/graphics/Paint;

    invoke-virtual {v1, v7}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 89
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->k:Landroid/graphics/Paint;

    invoke-virtual {v1, v6}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 91
    new-instance v1, Landroid/graphics/Paint;

    invoke-direct {v1}, Landroid/graphics/Paint;-><init>()V

    iput-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->l:Landroid/graphics/Paint;

    .line 92
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->l:Landroid/graphics/Paint;

    invoke-static {v0}, Landroid/graphics/Color;->alpha(I)I

    move-result v2

    invoke-static {v0}, Landroid/graphics/Color;->red(I)I

    move-result v3

    invoke-static {v0}, Landroid/graphics/Color;->green(I)I

    move-result v4

    invoke-static {v0}, Landroid/graphics/Color;->blue(I)I

    move-result v0

    invoke-static {v2, v3, v4, v0}, Landroid/graphics/Color;->argb(IIII)I

    move-result v0

    invoke-virtual {v1, v0}, Landroid/graphics/Paint;->setColor(I)V

    .line 93
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->l:Landroid/graphics/Paint;

    invoke-virtual {v0, v7}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    .line 94
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->l:Landroid/graphics/Paint;

    sget-object v1, Landroid/graphics/Paint$Style;->STROKE:Landroid/graphics/Paint$Style;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setStyle(Landroid/graphics/Paint$Style;)V

    .line 95
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->l:Landroid/graphics/Paint;

    invoke-virtual {v0, v6}, Landroid/graphics/Paint;->setStrokeWidth(F)V

    .line 97
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->i:Landroid/content/SharedPreferences;

    const-string v1, "FirstGestureType"

    const-string v2, "none"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 98
    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->i:Landroid/content/SharedPreferences;

    const-string v2, "SecondGestureType"

    const-string v3, "none"

    invoke-interface {v1, v2, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 99
    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/ak;->i:Landroid/content/SharedPreferences;

    const-string v3, "ThirdGestureType"

    const-string v4, "none"

    invoke-interface {v2, v3, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    .line 100
    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/ak;->i:Landroid/content/SharedPreferences;

    const-string v4, "FourthGestureType"

    const-string v5, "none"

    invoke-interface {v3, v4, v5}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 101
    iget-object v4, p0, Lcom/TwinBlade/PicturePassword/ak;->i:Landroid/content/SharedPreferences;

    const-string v5, "FifthGestureType"

    const-string v6, "none"

    invoke-interface {v4, v5, v6}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 103
    const-string v5, "none"

    invoke-virtual {v0, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-nez v5, :cond_0

    .line 104
    iget-object v5, p0, Lcom/TwinBlade/PicturePassword/ak;->f:Ljava/util/List;

    invoke-interface {v5, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 105
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget-object v5, p0, Lcom/TwinBlade/PicturePassword/ak;->w:Ljava/util/List;

    invoke-interface {v0, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 106
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->H:Ljava/util/List;

    iget-object v5, p0, Lcom/TwinBlade/PicturePassword/ak;->B:Ljava/util/List;

    invoke-interface {v0, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 108
    :cond_0
    const-string v0, "none"

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 109
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->f:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 110
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->x:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 111
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->H:Ljava/util/List;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->C:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 113
    :cond_1
    const-string v0, "none"

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 114
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->f:Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 115
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->y:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 116
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->H:Ljava/util/List;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->D:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 118
    :cond_2
    const-string v0, "none"

    invoke-virtual {v3, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_3

    .line 119
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->f:Ljava/util/List;

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 120
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->z:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 121
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->H:Ljava/util/List;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->E:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 123
    :cond_3
    const-string v0, "none"

    invoke-virtual {v4, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_4

    .line 124
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->f:Ljava/util/List;

    invoke-interface {v0, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 125
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->A:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 126
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->H:Ljava/util/List;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->F:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 128
    :cond_4
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->f:Ljava/util/List;

    const-string v1, "done"

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 130
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->i:Landroid/content/SharedPreferences;

    const-string v1, "RetryTimeout"

    const-string v2, "10"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->p:I

    .line 132
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->i:Landroid/content/SharedPreferences;

    const-string v1, "LinearValidationErrorTolerance"

    const-string v2, "75"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->r:I

    .line 133
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->i:Landroid/content/SharedPreferences;

    const-string v1, "CirclePosValidationErrorTolerance"

    const-string v2, "70"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->s:I

    .line 134
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->i:Landroid/content/SharedPreferences;

    const-string v1, "CircleRadiusValidationErrorTolerance"

    const-string v2, "45"

    invoke-interface {v0, v1, v2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v0

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->t:I

    .line 136
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->i:Landroid/content/SharedPreferences;

    const-string v1, "DisplayDrawnGestures"

    invoke-interface {v0, v1, v7}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/TwinBlade/PicturePassword/ak;->u:Z

    .line 137
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->i:Landroid/content/SharedPreferences;

    const-string v1, "DisplayStartPointIndicator"

    invoke-interface {v0, v1, v7}, Landroid/content/SharedPreferences;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/TwinBlade/PicturePassword/ak;->v:Z

    .line 139
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/ak;->d()V

    .line 140
    invoke-virtual {p0, v8}, Lcom/TwinBlade/PicturePassword/ak;->setMode(I)V

    .line 141
    return-void
.end method

.method private a(FF)F
    .locals 2
    .parameter
    .parameter

    .prologue
    .line 375
    mul-float v0, p1, p1

    mul-float v1, p2, p2

    add-float/2addr v0, v1

    float-to-double v0, v0

    invoke-static {v0, v1}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v0

    double-to-int v0, v0

    int-to-float v0, v0

    return v0
.end method

.method private a(FFFF)F
    .locals 3
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 371
    sub-float v0, p3, p1

    sub-float v1, p3, p1

    mul-float/2addr v0, v1

    sub-float v1, p4, p2

    sub-float v2, p4, p2

    mul-float/2addr v1, v2

    add-float/2addr v0, v1

    float-to-double v0, v0

    invoke-static {v0, v1}, Ljava/lang/Math;->sqrt(D)D

    move-result-wide v0

    double-to-int v0, v0

    int-to-float v0, v0

    return v0
.end method

.method public static a(Landroid/content/Context;Z)Lcom/TwinBlade/PicturePassword/ak;
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 144
    if-nez p1, :cond_0

    sget-object v0, Lcom/TwinBlade/PicturePassword/Utilities;->e:Lcom/TwinBlade/PicturePassword/ak;

    if-nez v0, :cond_1

    .line 145
    :cond_0
    new-instance v0, Lcom/TwinBlade/PicturePassword/ak;

    invoke-direct {v0, p0}, Lcom/TwinBlade/PicturePassword/ak;-><init>(Landroid/content/Context;)V

    sput-object v0, Lcom/TwinBlade/PicturePassword/Utilities;->e:Lcom/TwinBlade/PicturePassword/ak;

    .line 148
    :cond_1
    sget-object v0, Lcom/TwinBlade/PicturePassword/Utilities;->e:Lcom/TwinBlade/PicturePassword/ak;

    return-object v0
.end method

.method private b()V
    .locals 5

    .prologue
    const/4 v4, 0x0

    .line 250
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->g:Ljava/lang/String;

    const-string v1, "point"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 251
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    new-instance v1, Ljava/lang/StringBuilder;

    iget v2, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    add-int/lit8 v2, v2, 0x1

    invoke-static {v2}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ") "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    const v3, 0x7f0900bd

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v4, v4}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    .line 257
    :cond_0
    :goto_0
    return-void

    .line 252
    :cond_1
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->g:Ljava/lang/String;

    const-string v1, "line"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 253
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    new-instance v1, Ljava/lang/StringBuilder;

    iget v2, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    add-int/lit8 v2, v2, 0x1

    invoke-static {v2}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ") "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    const v3, 0x7f0900be

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v4, v4}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    goto :goto_0

    .line 254
    :cond_2
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->g:Ljava/lang/String;

    const-string v1, "circle"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 255
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    new-instance v1, Ljava/lang/StringBuilder;

    iget v2, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    add-int/lit8 v2, v2, 0x1

    invoke-static {v2}, Ljava/lang/Integer;->toString(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, ") "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    const v3, 0x7f0900bf

    invoke-virtual {v2, v3}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v4, v4}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    goto :goto_0
.end method

.method private c()V
    .locals 8

    .prologue
    const/4 v3, 0x0

    const/high16 v7, 0x4000

    const/4 v1, 0x0

    .line 294
    .line 299
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->j:Ljava/util/List;

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/TwinBlade/PicturePassword/d;

    iget v2, v0, Lcom/TwinBlade/PicturePassword/d;->b:F

    .line 300
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->j:Ljava/util/List;

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/TwinBlade/PicturePassword/d;

    iget v0, v0, Lcom/TwinBlade/PicturePassword/d;->a:F

    .line 302
    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/ak;->j:Ljava/util/List;

    invoke-interface {v3}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v5

    move v3, v2

    move v4, v1

    move v2, v0

    :cond_0
    :goto_0
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_1

    .line 320
    sub-float v0, v1, v2

    .line 321
    sub-float v1, v4, v3

    .line 323
    div-float v4, v1, v7

    add-float/2addr v3, v4

    .line 324
    div-float v4, v0, v7

    add-float/2addr v2, v4

    .line 325
    add-float/2addr v0, v1

    const/high16 v1, 0x4080

    div-float v1, v0, v1

    .line 327
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v4, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 328
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v4, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-static {v2}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 329
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v2, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-static {v3}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v2

    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 330
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v2, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-static {v1}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v1

    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 331
    return-void

    .line 302
    :cond_1
    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/TwinBlade/PicturePassword/d;

    .line 303
    iget v6, v0, Lcom/TwinBlade/PicturePassword/d;->b:F

    cmpl-float v6, v6, v4

    if-lez v6, :cond_2

    .line 304
    iget v4, v0, Lcom/TwinBlade/PicturePassword/d;->b:F

    .line 307
    :cond_2
    iget v6, v0, Lcom/TwinBlade/PicturePassword/d;->b:F

    cmpg-float v6, v6, v3

    if-gez v6, :cond_3

    .line 308
    iget v3, v0, Lcom/TwinBlade/PicturePassword/d;->b:F

    .line 311
    :cond_3
    iget v6, v0, Lcom/TwinBlade/PicturePassword/d;->a:F

    cmpl-float v6, v6, v1

    if-lez v6, :cond_4

    .line 312
    iget v1, v0, Lcom/TwinBlade/PicturePassword/d;->a:F

    .line 315
    :cond_4
    iget v6, v0, Lcom/TwinBlade/PicturePassword/d;->a:F

    cmpg-float v6, v6, v2

    if-gez v6, :cond_0

    .line 316
    iget v0, v0, Lcom/TwinBlade/PicturePassword/d;->a:F

    move v2, v0

    goto :goto_0
.end method

.method private d()V
    .locals 7

    .prologue
    const/4 v2, 0x0

    .line 335
    move v1, v2

    :goto_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v1, v0, :cond_0

    .line 344
    return-void

    .line 337
    :cond_0
    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/ak;->i:Landroid/content/SharedPreferences;

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->I:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const-string v4, "0"

    invoke-interface {v3, v0, v4}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 338
    const-string v3, ";"

    invoke-virtual {v0, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v4

    .line 340
    array-length v5, v4

    move v3, v2

    :goto_1
    if-lt v3, v5, :cond_1

    .line 335
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    .line 340
    :cond_1
    aget-object v6, v4, v3

    .line 341
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->H:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-static {v6}, Ljava/lang/Float;->valueOf(Ljava/lang/String;)Ljava/lang/Float;

    move-result-object v6

    invoke-interface {v0, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 340
    add-int/lit8 v0, v3, 0x1

    move v3, v0

    goto :goto_1
.end method

.method private e()Z
    .locals 14

    .prologue
    const/4 v13, 0x3

    const/4 v12, 0x2

    const/high16 v11, 0x42aa

    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 347
    .line 350
    iget v0, p0, Lcom/TwinBlade/PicturePassword/ak;->d:F

    iget v1, p0, Lcom/TwinBlade/PicturePassword/ak;->e:F

    invoke-direct {p0, v0, v1}, Lcom/TwinBlade/PicturePassword/ak;->a(FF)F

    move-result v0

    const/high16 v1, 0x42f0

    cmpl-float v0, v0, v1

    if-lez v0, :cond_6

    move v2, v3

    .line 354
    :goto_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->j:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v6

    move v5, v4

    :cond_0
    :goto_1
    invoke-interface {v6}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-nez v0, :cond_2

    .line 361
    if-nez v2, :cond_4

    .line 362
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    const v6, 0x7f0900bb

    invoke-virtual {v1, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v13, v3}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    .line 367
    :cond_1
    :goto_2
    if-eqz v2, :cond_5

    if-eqz v5, :cond_5

    :goto_3
    return v4

    .line 354
    :cond_2
    invoke-interface {v6}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/TwinBlade/PicturePassword/d;

    .line 355
    iget v7, v0, Lcom/TwinBlade/PicturePassword/d;->a:F

    iget v8, v0, Lcom/TwinBlade/PicturePassword/d;->b:F

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v9, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v1, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/List;

    invoke-interface {v1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Float;

    invoke-virtual {v1}, Ljava/lang/Float;->floatValue()F

    move-result v9

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v10, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v1, v10}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/List;

    invoke-interface {v1, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Float;

    invoke-virtual {v1}, Ljava/lang/Float;->floatValue()F

    move-result v1

    invoke-direct {p0, v7, v8, v9, v1}, Lcom/TwinBlade/PicturePassword/ak;->a(FFFF)F

    move-result v7

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v8, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v1, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/util/List;

    invoke-interface {v1, v12}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Ljava/lang/Float;

    invoke-virtual {v1}, Ljava/lang/Float;->floatValue()F

    move-result v1

    add-float/2addr v1, v11

    cmpl-float v1, v7, v1

    if-gtz v1, :cond_3

    .line 356
    iget v1, v0, Lcom/TwinBlade/PicturePassword/d;->a:F

    iget v7, v0, Lcom/TwinBlade/PicturePassword/d;->b:F

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v8, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v8

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v9, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v0

    invoke-direct {p0, v1, v7, v8, v0}, Lcom/TwinBlade/PicturePassword/ak;->a(FFFF)F

    move-result v1

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v7, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v12}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v0

    sub-float/2addr v0, v11

    cmpg-float v0, v1, v0

    if-gez v0, :cond_0

    :cond_3
    move v5, v3

    .line 357
    goto/16 :goto_1

    .line 363
    :cond_4
    if-nez v5, :cond_1

    .line 364
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    const v6, 0x7f0900bc

    invoke-virtual {v1, v6}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v13, v3}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    goto/16 :goto_2

    :cond_5
    move v4, v3

    .line 367
    goto/16 :goto_3

    :cond_6
    move v2, v4

    goto/16 :goto_0
.end method

.method private f()Z
    .locals 10

    .prologue
    const/4 v9, 0x3

    const/4 v8, 0x2

    const/4 v4, 0x1

    const/4 v2, 0x0

    .line 379
    move v1, v2

    move v3, v4

    .line 381
    :goto_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v1, v0, :cond_0

    .line 408
    return v3

    .line 382
    :cond_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 383
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ne v0, v8, :cond_2

    .line 385
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v5

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v6

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->H:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v7

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->H:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v0

    invoke-direct {p0, v5, v6, v7, v0}, Lcom/TwinBlade/PicturePassword/ak;->a(FFFF)F

    move-result v0

    iget v5, p0, Lcom/TwinBlade/PicturePassword/ak;->r:I

    int-to-float v5, v5

    cmpl-float v0, v0, v5

    if-lez v0, :cond_1

    move v3, v2

    .line 381
    :cond_1
    :goto_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    .line 388
    :cond_2
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    const/4 v5, 0x4

    if-ne v0, v5, :cond_4

    .line 390
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v5

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v6

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->H:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v7

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->H:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v0

    invoke-direct {p0, v5, v6, v7, v0}, Lcom/TwinBlade/PicturePassword/ak;->a(FFFF)F

    move-result v0

    iget v5, p0, Lcom/TwinBlade/PicturePassword/ak;->r:I

    int-to-float v5, v5

    cmpl-float v0, v0, v5

    if-lez v0, :cond_3

    move v3, v2

    .line 393
    :cond_3
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v5

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v6

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->H:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v7

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->H:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v0

    invoke-direct {p0, v5, v6, v7, v0}, Lcom/TwinBlade/PicturePassword/ak;->a(FFFF)F

    move-result v0

    iget v5, p0, Lcom/TwinBlade/PicturePassword/ak;->r:I

    int-to-float v5, v5

    cmpl-float v0, v0, v5

    if-lez v0, :cond_1

    move v3, v2

    .line 396
    goto/16 :goto_1

    :cond_4
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ne v0, v9, :cond_1

    .line 398
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v5

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v6

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->H:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v7

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->H:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v0

    invoke-direct {p0, v5, v6, v7, v0}, Lcom/TwinBlade/PicturePassword/ak;->a(FFFF)F

    move-result v0

    iget v5, p0, Lcom/TwinBlade/PicturePassword/ak;->s:I

    int-to-float v5, v5

    cmpl-float v0, v0, v5

    if-lez v0, :cond_5

    move v3, v2

    .line 401
    :cond_5
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v5

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->H:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v0

    sub-float v0, v5, v0

    invoke-static {v0}, Ljava/lang/Math;->abs(F)F

    move-result v0

    iget v5, p0, Lcom/TwinBlade/PicturePassword/ak;->t:I

    int-to-float v5, v5

    cmpl-float v0, v0, v5

    if-lez v0, :cond_1

    move v3, v2

    .line 402
    goto/16 :goto_1
.end method


# virtual methods
.method public a()V
    .locals 2

    .prologue
    .line 412
    const/4 v0, 0x0

    move v1, v0

    :goto_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v1, v0, :cond_0

    .line 415
    return-void

    .line 413
    :cond_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 412
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0
.end method

.method public onDraw(Landroid/graphics/Canvas;)V
    .locals 11
    .parameter

    .prologue
    const/high16 v10, 0x4140

    const/high16 v1, -0x4080

    const/4 v9, 0x2

    const/4 v8, 0x1

    const/4 v7, 0x0

    .line 153
    iget v0, p0, Lcom/TwinBlade/PicturePassword/ak;->n:F

    cmpl-float v0, v0, v1

    if-eqz v0, :cond_0

    iget v0, p0, Lcom/TwinBlade/PicturePassword/ak;->o:F

    cmpl-float v0, v0, v1

    if-eqz v0, :cond_0

    iget-boolean v0, p0, Lcom/TwinBlade/PicturePassword/ak;->v:Z

    if-eqz v0, :cond_0

    .line 154
    iget v0, p0, Lcom/TwinBlade/PicturePassword/ak;->n:F

    iget v1, p0, Lcom/TwinBlade/PicturePassword/ak;->o:F

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/ak;->m:Landroid/graphics/Paint;

    invoke-virtual {p1, v0, v1, v10, v2}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V

    .line 157
    :cond_0
    iget-boolean v0, p0, Lcom/TwinBlade/PicturePassword/ak;->u:Z

    if-eqz v0, :cond_1

    move v6, v7

    .line 158
    :goto_0
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-lt v6, v0, :cond_2

    .line 173
    :cond_1
    return-void

    .line 159
    :cond_2
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 160
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    if-ne v0, v9, :cond_4

    .line 162
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v1

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v0

    iget-object v2, p0, Lcom/TwinBlade/PicturePassword/ak;->k:Landroid/graphics/Paint;

    invoke-virtual {p1, v1, v0, v10, v2}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V

    .line 158
    :cond_3
    :goto_1
    add-int/lit8 v0, v6, 0x1

    move v6, v0

    goto :goto_0

    .line 163
    :cond_4
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    const/4 v1, 0x4

    if-ne v0, v1, :cond_5

    .line 165
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v1

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v2

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v3

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    const/4 v4, 0x3

    invoke-interface {v0, v4}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v4

    iget-object v5, p0, Lcom/TwinBlade/PicturePassword/ak;->k:Landroid/graphics/Paint;

    move-object v0, p1

    invoke-virtual/range {v0 .. v5}, Landroid/graphics/Canvas;->drawLine(FFFFLandroid/graphics/Paint;)V

    goto :goto_1

    .line 166
    :cond_5
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    const/4 v1, 0x3

    if-ne v0, v1, :cond_3

    .line 168
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v7}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v1

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v8}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v2

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    invoke-interface {v0, v6}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0, v9}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Float;

    invoke-virtual {v0}, Ljava/lang/Float;->floatValue()F

    move-result v0

    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/ak;->l:Landroid/graphics/Paint;

    invoke-virtual {p1, v1, v2, v0, v3}, Landroid/graphics/Canvas;->drawCircle(FFFLandroid/graphics/Paint;)V

    goto/16 :goto_1
.end method

.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 5
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x1

    .line 176
    monitor-enter p2

    .line 178
    const-wide/16 v3, 0x10

    :try_start_0
    invoke-virtual {p2, v3, v4}, Ljava/lang/Object;->wait(J)V

    .line 180
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->g:Ljava/lang/String;

    const-string v3, "circle"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 181
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_0

    .line 182
    const/4 v0, 0x0

    sput-boolean v0, Lcom/TwinBlade/PicturePassword/al;->a:Z

    .line 183
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->b:F

    .line 184
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v0

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->c:F

    .line 185
    iget v0, p0, Lcom/TwinBlade/PicturePassword/ak;->b:F

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->n:F

    .line 186
    iget v0, p0, Lcom/TwinBlade/PicturePassword/ak;->c:F

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->o:F

    .line 187
    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/ak;->invalidate()V

    .line 190
    :cond_0
    new-instance v0, Lcom/TwinBlade/PicturePassword/d;

    invoke-direct {v0}, Lcom/TwinBlade/PicturePassword/d;-><init>()V

    .line 191
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v3

    iput v3, v0, Lcom/TwinBlade/PicturePassword/d;->a:F

    .line 192
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v3

    iput v3, v0, Lcom/TwinBlade/PicturePassword/d;->b:F

    .line 193
    iget-object v3, p0, Lcom/TwinBlade/PicturePassword/ak;->j:Ljava/util/List;

    invoke-interface {v3, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 195
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-ne v0, v1, :cond_2

    .line 196
    const/high16 v0, -0x4080

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->n:F

    .line 197
    const/high16 v0, -0x4080

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->o:F

    .line 198
    sget-boolean v0, Lcom/TwinBlade/PicturePassword/al;->a:Z

    if-nez v0, :cond_1

    .line 199
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    iget v3, p0, Lcom/TwinBlade/PicturePassword/ak;->b:F

    sub-float/2addr v0, v3

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->d:F

    .line 200
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v0

    iget v3, p0, Lcom/TwinBlade/PicturePassword/ak;->c:F

    sub-float/2addr v0, v3

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->e:F

    .line 201
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/ak;->c()V

    .line 202
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/ak;->e()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 203
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/ak;->setMode(I)V

    .line 209
    :cond_1
    :goto_0
    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/ak;->invalidate()V

    .line 210
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->j:Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 242
    :cond_2
    :goto_1
    :try_start_1
    monitor-exit p2
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    move v0, v1

    .line 244
    :goto_2
    return v0

    .line 205
    :cond_3
    :try_start_2
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v3, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 206
    const/4 v0, 0x0

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/ak;->setMode(I)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_0

    goto :goto_0

    .line 243
    :catch_0
    move-exception v0

    .line 244
    :try_start_3
    monitor-exit p2
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    move v0, v2

    goto :goto_2

    .line 212
    :cond_4
    :try_start_4
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->g:Ljava/lang/String;

    const-string v3, "point"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_5

    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->g:Ljava/lang/String;

    const-string v3, "line"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 213
    :cond_5
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-nez v0, :cond_6

    .line 214
    const/4 v0, 0x0

    sput-boolean v0, Lcom/TwinBlade/PicturePassword/al;->a:Z

    .line 215
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->b:F

    .line 216
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v0

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->c:F

    .line 217
    iget v0, p0, Lcom/TwinBlade/PicturePassword/ak;->b:F

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->n:F

    .line 218
    iget v0, p0, Lcom/TwinBlade/PicturePassword/ak;->c:F

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->o:F

    .line 219
    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/ak;->invalidate()V

    .line 222
    :cond_6
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v0

    if-ne v0, v1, :cond_2

    .line 223
    const/high16 v0, -0x4080

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->n:F

    .line 224
    const/high16 v0, -0x4080

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->o:F

    .line 225
    sget-boolean v0, Lcom/TwinBlade/PicturePassword/al;->a:Z

    if-nez v0, :cond_8

    .line 226
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->g:Ljava/lang/String;

    const-string v3, "point"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_9

    .line 227
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v3, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 228
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v3, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v3

    invoke-static {v3}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 229
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v3, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v3

    invoke-static {v3}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 237
    :cond_7
    :goto_3
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/TwinBlade/PicturePassword/ak;->setMode(I)V

    .line 239
    :cond_8
    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/ak;->invalidate()V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    goto/16 :goto_1

    .line 176
    :catchall_0
    move-exception v0

    :try_start_5
    monitor-exit p2
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    throw v0

    .line 230
    :cond_9
    :try_start_6
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->g:Ljava/lang/String;

    const-string v3, "line"

    invoke-virtual {v0, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_7

    .line 231
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v3, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-interface {v0}, Ljava/util/List;->clear()V

    .line 232
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v3, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    iget v3, p0, Lcom/TwinBlade/PicturePassword/ak;->b:F

    invoke-static {v3}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 233
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v3, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    iget v3, p0, Lcom/TwinBlade/PicturePassword/ak;->c:F

    invoke-static {v3}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 234
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v3, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v3

    invoke-static {v3}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 235
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->G:Ljava/util/List;

    iget v3, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    invoke-virtual {p2}, Landroid/view/MotionEvent;->getY()F

    move-result v3

    invoke-static {v3}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;

    move-result-object v3

    invoke-interface {v0, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_6
    .catchall {:try_start_6 .. :try_end_6} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_6 .. :try_end_6} :catch_0

    goto :goto_3
.end method

.method public setMode(I)V
    .locals 6
    .parameter

    .prologue
    const/4 v5, 0x1

    const/4 v4, -0x1

    const/4 v3, 0x0

    .line 260
    if-nez p1, :cond_1

    .line 261
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->f:Ljava/util/List;

    iget v1, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->g:Ljava/lang/String;

    .line 262
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/ak;->b()V

    .line 291
    :cond_0
    :goto_0
    return-void

    .line 263
    :cond_1
    if-ne p1, v5, :cond_4

    .line 264
    iget v0, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    .line 265
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->f:Ljava/util/List;

    iget v1, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    iput-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->g:Ljava/lang/String;

    .line 267
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->g:Ljava/lang/String;

    const-string v1, "done"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 268
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/ak;->f()Z

    move-result v0

    if-eqz v0, :cond_2

    .line 269
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    const v2, 0x7f0900b9

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1, v5, v3}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    .line 270
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    invoke-static {v0, v3}, Lcom/TwinBlade/PicturePassword/bl;->a(Landroid/content/Context;Z)Lcom/TwinBlade/PicturePassword/bl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/TwinBlade/PicturePassword/bl;->c()V

    goto :goto_0

    .line 272
    :cond_2
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    iget-object v1, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    const v2, 0x7f0900ba

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x2

    invoke-static {v0, v1, v2, v3}, Lcom/TwinBlade/PicturePassword/Utilities;->a(Landroid/content/Context;Ljava/lang/String;IZ)V

    .line 273
    invoke-virtual {p0}, Lcom/TwinBlade/PicturePassword/ak;->a()V

    .line 274
    invoke-virtual {p0, v4}, Lcom/TwinBlade/PicturePassword/ak;->setMode(I)V

    goto :goto_0

    .line 277
    :cond_3
    invoke-direct {p0}, Lcom/TwinBlade/PicturePassword/ak;->b()V

    .line 278
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Utilities;->b(Landroid/content/Context;)V

    goto :goto_0

    .line 280
    :cond_4
    if-ne p1, v4, :cond_0

    .line 281
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    invoke-static {v0}, Lcom/TwinBlade/PicturePassword/Utilities;->b(Landroid/content/Context;)V

    .line 283
    iget v0, p0, Lcom/TwinBlade/PicturePassword/ak;->q:I

    add-int/lit8 v0, v0, 0x1

    iput v0, p0, Lcom/TwinBlade/PicturePassword/ak;->q:I

    .line 284
    iget v0, p0, Lcom/TwinBlade/PicturePassword/ak;->q:I

    iget v1, p0, Lcom/TwinBlade/PicturePassword/ak;->p:I

    if-lt v0, v1, :cond_5

    .line 285
    iget-object v0, p0, Lcom/TwinBlade/PicturePassword/ak;->h:Landroid/content/Context;

    invoke-static {v0, v3}, Lcom/TwinBlade/PicturePassword/bl;->a(Landroid/content/Context;Z)Lcom/TwinBlade/PicturePassword/bl;

    move-result-object v0

    invoke-virtual {v0}, Lcom/TwinBlade/PicturePassword/bl;->d()V

    goto :goto_0

    .line 287
    :cond_5
    iput v3, p0, Lcom/TwinBlade/PicturePassword/ak;->a:I

    .line 288
    invoke-virtual {p0, v3}, Lcom/TwinBlade/PicturePassword/ak;->setMode(I)V

    goto :goto_0
.end method
